package aygx.spring.boot.principle.config;

import aygx.spring.boot.principle.entity.People;
import aygx.spring.boot.principle.entity.PeopleFactoryBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 暗影孤星
 * @date 2022/7/24 22:57
 * @description
 */
@Configuration
public class ComponentConfig {

    @Bean
    public People people1() {
        return new People();
    }

    @Bean
    public PeopleFactoryBean people2() {
        return new PeopleFactoryBean();
    }
}
